home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Paste Exception < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.1 KB  |  [TEXT/ttxt]

  1. Subject:     Paste Exception
  2. Sent:        6/11/96 8:27 AM
  3. Received:    6/11/96 9:12 AM
  4. From:        Serge Froment, sfroment@odyssee.net
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Dear ODF Team:
  9.  
  10. Here is the scenario: my Paste command had called CMyContent::Internalize,
  11. and the latter had encountered a fatal error in the formatted text. I want
  12. to warn the user that <<The Paste command could not be completed because
  13. the pasted text contains "bidule" and I cannot understand that word.>> and
  14. then abort the command. It seems to me this is the time for an exception. I
  15. have read ODF Developers Guide and it says very little about throwing
  16. exceptions. I have searched for FW_DEFINE_EXCEPTION through the whole ODF
  17. and examples source and found only FW_XException.
  18.  
  19. So I don't know if I should post an error dialog when I encounter the error
  20. and throw some standard exception to have the command aborted, or if I
  21. should really define my own exception class and make sure I catch it
  22. myself. In the latter case, where do I catch it and what do I do
  23. thereafter.
  24.  
  25. Serge
  26.  
  27.